package bounjour;

import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;

/**
 * @author Senem Beken
 * @date: 07.05.11
 * 
 * This class contains static utility functions that can be called from everywhere
 */
public class Util 
{
	public static void validateEmail(String eMail)
	{
		try
		{
			InternetAddress validator = new InternetAddress(eMail);
			validator.validate();
		}
		catch(AddressException e)
		{
			System.out.println("E-mail address invalid");
		}
	}
}
